<ul class="nav nav-secondary">
	<li ><a href="#/classes/{{classe.id}}">编辑班级</a></li>
	<li class="active"><a href="#/classes/{{classe.id}}/teach_plan/">教学计划</a></li>
</ul> 

<form class="form with-padding" role="form" method="post">
		
<div class="row">
	<div class="col-md-4" >
		<input ng-model="add.plan_name" type="text" class="form-control" placeholder="教学计划名称">
	</div>
	<div class="col-md-4" >
		<button ng-show="!isEdit"  ng-click="create(add)" class="btn btn-primary" type="button">新建</button>
		<button ng-show="isEdit" ng-click="edit_submit(add)" class="btn btn-primary" type="button">更新</button>
		<button ng-show="isEdit" ng-click="edit_cancel(add)" class="btn" type="button">取消</button>
	</div>
</div>
</form>

<hr />

<table class="table">
    <thead>
	    <tr>
	    	<th>序号</th>
	    	<th>计划名称</th>
	    	<th>操作</th>
	    </tr>
  	</thead>
  	<tbody>
	    <tr ng-repeat="teach_plan in teach_plans">
	    	<td>{{$index+1}}</td>
	    	<td>{{teach_plan.plan_name}}</td>
	    	<td>
	    		<button ng-click="delete(teach_plan)" class="icon-trash btn btn-sm text-warning"></button>
	    		<button ng-click="edit(teach_plan)" class="icon-pencil btn btn-sm text-primary"></button>
	    	</td>
	    </tr>
  	</tbody>
</table>